package com.nuedu.corejava.ch7.homework;

import java.util.Random;

public class TesStudents {
	public static void main(String[] args) {
		
		Students[] students=new Students[5];
		Random random=new Random();
		students[0]=new English("001","AS",'男',19,random.nextInt(100),random.nextInt(100),random.nextInt(100));
		students[1]=new Chinese("002","bs",'女',21,random.nextInt(100),random.nextInt(100),random.nextInt(100),random.nextInt(100));
		students[2]=new Chinese("003","cs",'女',22,random.nextInt(100),random.nextInt(100),random.nextInt(100),random.nextInt(100));
		students[3] = new Computer("004", "ds", '男', 22, random.nextInt(100), random.nextInt(100), random.nextInt(100), random.nextInt(100));
		students[4] = new English("005", "es", '男', 21, random.nextInt(100), random.nextInt(100), random.nextInt(100));
		Print print=new Print();
		for(Students i:students) {
			print.print(i);
		}
		
		 
	}

}
